<?php

use yii\helpers\Html;


/* @var $this yii\web\View */
/* @var $model common\models\customInfo\CustomInfo */

$this->title = Yii::t('app', '添加报名');
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Custom Infos'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<?php $this->beginBlock('siderbar'); ?>
<?= $this->render('//layouts/act-menu') ?>
<?php $this->endBlock(); ?>
<script>
     var custom_elements_wap = <?= $custom_elements_wap ?>;
</script>
<script type="text/javascript" src="<?= yii::getAlias('@web');?>/js/zepto.js"></script>
<script type="text/javascript" src="<?= yii::getAlias('@web');?>/js/sm.min.js"></script>
<script type="text/javascript" src="<?= yii::getAlias('@web');?>/js/swiper.min.js"></script>
<script type="text/javascript" src="<?= yii::getAlias('@web');?>/js/sm-city-picker.js"></script>
<script type="text/javascript" src="<?= yii::getAlias('@web');?>/js/formMobihao.js"></script>
<?php $this->beginBlock('siderbar'); ?>
<?= $this->render('//layouts/act-menu') ?>
<?php $this->endBlock(); ?>
<div class="design_content" style="margin-bottom: -10px;">
    <div class="design_form">
        <div class="form_Pontent">
             <form id="custom_f"  action="<?= yii\helpers\Url::to(['custom-info/addcustom']);?>" method='post' >
                <input name="_csrf" type="hidden" id="_csrf" value="<?= Yii::$app->request->csrfToken ?>">
                <input type="hidden" name="ac_id" value="<?= $id ?>" />
                <ul style=" padding: 25px;">
                    <div class="mainFrom">
                    <ul class="formUl">
                    </ul>
                    </div>
                    <li class="liBtn" id="divBtnNewxStep" style="text-align: center;margin: 40px 0 0 0;">
                        <input id="btnNextStep" class="button" value="下一步" style="text-align: center; "  type="button">
                    </li>
                </ul>
                <input name="regType" id="regType" value="6455" type="hidden">
                <input name="eventID" id="eventID" value="6832" type="hidden">
                <input name="EditState" id="EditState" value="1" type="hidden">
             </form> 
        </div>
    </div>
</div>
<script>
        $(function(){
            $("#btnNextStep").click(function(){
                
            //console.log(checkForm());
                if(checkForm()){
                    $(".loader").find('p').text('表单提交中');
                    $(".loader").show();
                    $("#custom_f").submit();
                }
            })
        })
 </script>
